<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>试用专区[往期试用] - {$catename} - {$Config.sitename}</title>
    <link rel="stylesheet" href="__CSS__/global.css" />
    <link rel="stylesheet" href="__CSS__/index.css" />
    <link rel="stylesheet" href="__CSS__/shiyong.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery.min.js"></script>
    <style>
        a.b-scroll__item{
            margin-right: 62px;
        }
    </style>
</head>

<body>

<div class="b-page">
    <include file="Public:tryheader"/>

<div class="b-body l-center" style="padding-bottom:0;">
    <div class="ofh" style="font-size:14px;color:#4e4e4e;padding-bottom:20px;">
        <span>当前位置：</span>
        <a href="__WEBURL__/try">试用平台</a>
        <span>></span>
        <a href="__WEBURL__/try/lasttry">往期试用</a>
    </div>

    <div class="ofh" style="border:1px solid #e3e3e3;margin-bottom:20px;">
        <div class="ofh" style="height:32px;background-color:#f5f5f5;">
            <if condition="$_GET['cat'] eq ''">
            <a href="__WEBURL__/try/lasttry" class="b-biaoqian act">所有宝贝</a>
                <else/>
            <a href="__WEBURL__/try/lasttry" class="b-biaoqian">所有宝贝</a>
                </if>
            <foreach name="cate" item="ct">
                <if condition="$_GET['cat'] eq $ct['cateid']">
                    <a href="__WEBURL__/try/lasttry?cat={$ct.cateid}" class="b-biaoqian act">{$ct.catename}</a>
                    <else/>
                    <a href="__WEBURL__/try/lasttry?cat={$ct.cateid}" class="b-biaoqian">{$ct.catename}</a>
                </if>
            </foreach>
        </div>
        <div class="ofh" style="padding:7px;border-top:1px solid #e3e3e3;">
            <div class="b-search">
                <input type="text" id="keySearch" value="{$keyword}" class="b-search__input">
                <a onclick="list_search({$cat},{$postfee},{$order},'desc');" class="b-search__btn">确定</a>
            </div>
            <a href="__WEBURL__/try/lasttry?{$caturl}&postfee=1{$orderurl}{$sorturl}{$keywordurl}" class="b-key">免邮</a>
            <a href="__WEBURL__/try/lasttry?{$caturl}&postfee=2{$orderurl}{$sorturl}{$keywordurl}" class="b-key">收邮</a>
            <div style="float: right">{$arrowpage}</div>
        </div>
        <div class="ofh" style="border-top:1px solid #e3e3e3;">
            <a href="__WEBURL__/try/lasttry?{$caturl}{$postfeeurl}&order=1{$sorturl}{$keywordurl}" class="b-fenlei">最新<i class="{$cls1} pic_mid"></i></a>
            <a href="__WEBURL__/try/lasttry?{$caturl}{$postfeeurl}&order=2{$sorturl}{$keywordurl}" class="b-fenlei">价值<i class="{$cls2} pic_mid"></i></a>
            <a href="__WEBURL__/try/lasttry?{$caturl}{$postfeeurl}&order=3{$sorturl}{$keywordurl}" class="b-fenlei">人气<i class="{$cls3} pic_mid"></i></a>
            <a href="__WEBURL__/try/lasttry?{$caturl}{$postfeeurl}&order=4{$sorturl}{$keywordurl}" class="b-fenlei">份数<i class="{$cls4} pic_mid"></i></a>
            <a href="__WEBURL__/try/lasttry?{$caturl}{$postfeeurl}&order=5{$sorturl}{$keywordurl}" class="b-fenlei">剩余份数<i class="{$cls5} pic_mid"></i></a>
        </div>
    </div>

    <div class="b-shiyongList" id="jinqi" style="">
        <empty name="list"><div class="nodata">暂无试用商品</div></empty>
        <foreach name="list" item="vo">
            <a href="__WEBURL__/try/detail/{$vo.tryid}.html" class="b-scroll__item">
                <div class="b-shiyongItem__pic"><img src="__FILESURL__{$vo.image}" alt="{$vo.title}"></div>
                <div class="b-scroll__title">{$vo.title}</div>
                <div class="b-scroll__tags">
                    <div class="b-scroll__tag">￥{$vo.price}</div>
                    <div class="b-scroll__tag">{$vo.trynum}份</div>
                </div>
                <div class="b-scroll__shenqing">
                    <b>{$vo.requestnum}</b>
                    <span>人申请</span>
                </div>
                <div class="b-scroll__status">已结束</div>
            </a>
        </foreach>

        <div class="try-page"><div class="pager">{$Page}</div></div>

    </div>

</div>
    <include file="Public:footer"/>
</div>

<script>
    $(document).ready(function(){
        $('#jinqi>.b-scroll__item').each(function(i,val){
            if(i%3==2) $(this).addClass('last');
        });
    });

    function list_search(cid,posfree,try_order,sort){
        cid=parseInt(cid);
        posfree=parseInt(posfree);
        try_order=parseInt(try_order);
        sort=sort;
        var key_word=$('#keySearch').val().trim();
        if(key_word==''){alert('请输入搜索关键字');return false;}
        var url='?cat='+cid+'&posfree='+posfree+'&order='+try_order+'&sort='+sort+'&keyword='+key_word;
        window.location.href=url;
    }
</script>

<script src="__JS__/index.js"></script>

</body>
</html>